<template>
  <layout :appHeader="{ title: '代繳詳情' }">
    <view class="home-container">
      <view class="policy-detail">
        <view class="item">
          <view class="label">支付狀態</view>
          <view class="value">支付成功</view>
        </view>
        <view class="item">
          <view class="label">支付時間</view>
          <view class="value">2021-08-12 09:20:10</view>
        </view>
        <view class="item">
          <view class="label">支付方式</view>
          <view class="value">招商銀行(2890)</view>
        </view>
        <view class="item">
          <view class="label">银行账号</view>
          <view class="value">{{ this.bankAccount }}</view>
        </view>
        <view class="item">
          <view class="label">交易單號</view>
          <view class="value">234923904823908490238</view>
        </view>
        <view class="item">
          <view class="label">保險公司</view>
          <view class="value">{{ this.company }}</view>
        </view>
        <view class="item">
          <view class="label">產品</view>
          <view class="value">FE3/FE4 [五连跃昇储蓄保险计划]</view>
        </view>
        <view class="item">
          <view class="label">應繳保費</view>
          <view class="value">HK$400,000.66</view>
        </view>
      </view>
      <view class="payment-detail">
        <view class="label">支付金額</view>
        <view class="value">
          <span class="unit">HK$</span><span class="money">400,000</span
          ><span class="mantissa">.66</span>
        </view>
      </view>
    </view>
  </layout>
</template>
<script>
export default {
  data() {
    return {
      bankAccount: "",
      company: "",
    };
  },
  onLoad(options) {
    console.log(options);
    this.bankAccount = options.bankAccount;
    this.company = options.company;
  },
};
</script>
<style lang="scss" scoped>
.home-container {
  position: relative;
  padding: 24rpx 26px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 50rpx;
  background: #fff;
  margin: 10px;
  border-radius: 8px;
  .policy-detail {
    border-bottom: 1px solid rgba(142, 145, 159, 0.2);
    padding-top: 20px;
    padding-bottom: 20px;
    .item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 40px;
      font-size: 14px;
      margin-bottom: 10px;
      .label {
        color: #8e919f;
        width: 100px;
      }
      .value {
        color: #42475f;
        font-weight: bold;
        text-align: right;
      }
    }
  }
  .payment-detail {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    .value {
      font-size: 24px;
      .unit {
        font-size: 12px;
        vertical-align: super;
        margin-right: 4px;
      }
      .money {
        position: relative;
        top: -2px;
      }
      .mantissa {
        font-size: 12px;
        vertical-align: super;
        margin-left: 4px;
      }
    }
  }
}
</style>